package com.biz.imp;

import java.util.*;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.bean.Region;
import com.biz.RegionBiz;
import com.service.MapperService;
@Service
@Transactional
public class RegionBizImp implements RegionBiz {
	@Autowired
	private MapperService mapperService;
	
	public MapperService getMapperService() {
		return mapperService;
	}

	public void setMapperService(MapperService mapperService) {
		this.mapperService = mapperService;
	}

	public List<Region> findByPid(Integer pid) {
		
		return mapperService.getRegionMapper().findByPid(pid);
	}

}
